//
//  main.m
//  练习1
//
//  Created by apple on 15/7/28.
//  Copyright (c) 2015年 戴维营. All rights reserved.
//
#import "Foundation/Foundation.h"

int func0(int a,int b){
    return a + b;
}

int func1(int a,int b){
    return a * b;
}

int func2(int a,int b){
    return a / b;
}

int func3(int a,int b){
    return a - b;
}

int func4(int a,int b){
    return 0;
}

int func5(int a,int b){
    return 0;
}

int main(int argc, const char * argv[]) {
    @autoreleasepool {
        
        int (*pfunc)(int a,int b);
        pfunc = func0;
        NSLog(@"result : %d",pfunc(1,2));
        
        pfunc = func1;
        NSLog(@"result : %d",pfunc(1,2));
        
        return 0;
        
    }
}
